<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>SurfaceChart.setShadingMode</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1"><a href="SurfaceChart.htm">SurfaceChart</a>.<wbr>setShadingMode</p>
<hr class="separator">
<p class="heading2a">Usage</p>
<div class="content">
public void setShadingMode(int shadingMode [, int wireWidth ])
</div>
<p class="heading2">Description</p>
<div class="content">
Sets the shading mode for the surface.<br><br>
ChartDirector supports the following methods for shading the surface.<br><br>
<div style="width:100%;box-sizing:border-box;"><table width="100%" border="1" cellpadding="5" cellspacing="0"> <tr><th width="19%">Constant<th width="19%%">Value<th>Description
<tr><td><a href="Chart.SmoothShading.htm">SmoothShading</a><td>0<td>The brightness of the surface varies smoothly.
<tr><td><a href="Chart.TriangularShading.htm">TriangularShading</a><td>1<td>The surface is divided into triangular patches. The brightness of the patches varies according to their orientation. Within a patch, the brightness is constant.
<tr><td><a href="Chart.RectangularShading.htm">RectangularShading</a><td>2<td>The surface is divided into rectangular patches. The brightness of the patches varies according to their orientation. Within a patch, the brightness is constant.
<tr><td><a href="Chart.TriangularFrame.htm">TriangularFrame</a><td>3<td>The surface is divided into triangular patches. Only the edges of the patches are drawn.
<tr><td><a href="Chart.RectangularFrame.htm">RectangularFrame</a><td>4<td>The surface is divided into rectangular patches. Only the edges of the patches are drawn.
</table></div>
</div>
<p class="heading2">Arguments</p>
<div class="content">
<div style="width:100%;box-sizing:border-box;">
<table border="1" cellpadding="5" cellspacing="0" width="100%"> 
<tr>
<th width="19%">Argument</th><th width="19%">Default</th><th>Description</th>
</tr>
<tr>
<td>shadingMode</td><td>(Mandatory)</td><td>The shading mode, which must be one of the above constants.</td></tr><tr><td>wireWidth</td><td>1</td><td>The wire width for use with wireframe shading modes.</td>
</tr>
</table>
</div>
</div>
<p class="heading2">Return Value</p>
<div class="content">
None
</div>
<br><hr class="separator">
<div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
